<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>EasySchedule</title>
    <meta name="keywords" content="" />
    <meta name="description" content="" />
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <meta http-equiv="content-language" content="" />
    <link href="public/style.css" rel="stylesheet" type="text/css" media="screen"/>
</head>
<%String submit = (session.getAttribute("username")==null)?"":"onLoad=\"document.authenticate.submit.click()\""; %>
<body <%=submit %>>
   <div id="page">
	        <div id="header">
	            <h1><a href="./">Easy<span class="logo">Schedule</span></a></h1>
	            <p id="subtitle">Nice and easy registration system</p>
	        </div>
	        <div id="menu">
	            <ul>
	                <li class="left_menu"><a href="./">Home</a></li>
	                <li class="left_menu"><a href="./about.html">About</a></li>
	            </ul>
	        </div>
        <div id="main">	
            <div id="sidebar">
                <div id="login" class="box">
                    <h2>Account Login</h2>
                    <div class="box2">
                        <form method="post" name="authenticate" action="j_security_check">
                            <p class="txtleft"><label for="user">User Name:</label></p>
                            <%String user = (session.getAttribute("username")==null)?"":(String)session.getAttribute("username"); %>
                            <input type="text" name="j_username" id="user" value="<%=user %>" class="text" /><br />
                            <p class="txtleft"><label for="password">Password:</label></p>
                            <%String pass = (session.getAttribute("password")==null)?"":(String)session.getAttribute("password"); %>
                            <input type="password" name="j_password" id="password" value="<%=pass %>" class="password" /><br />
                            <input type="submit" name="submit" id="submit" class="submit" value="Submit" />
                            <p><a href="public/register">Create an account</a></p>
                        </form>
                    </div>
                </div><!-- login -->		
            </div><!-- sidebar -->    	              
            <div id="content">
                <div id="contheader">
                    <h2>Welcome!</h2>
                </div>		
                <div id="content2" class="welcome">	
					<h2>Welcome To EasySchedule</h2>
					<div class="entry">
						<p>EasySchedule is a convenient and intuitive system that lets you plan your semester schedule.</p>
						<p>On EasySchedule you will be able to view your timetable, search for courses that interest you, and register to those courses.</p>
					</div>
                </div><!-- content2 -->								              
            </div><!-- content -->                    
            <div class="clearing">&nbsp;</div> 
            <div id="footer">
                <p><a href="http://www.cs.technion.ac.il/~cs236369/">Managing Data on the World-Wide Web</a></p>
            </div>
        </div><!-- main -->
    </div><!-- page -->
	</body>
</html>